<?php
	/**
	 * Elgg groups plugin
	 * 
	 * @package ElggGroups
	 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
	 * @author Curverider Ltd
	 * @copyright Curverider Ltd 2008-2009
	 * @link http://elgg.com/
	 */

	gatekeeper();
	
	/****************************************
	
		UDA : N'afficher que certains liens
		en cas de readOnly (voir conf)
		
		auteur : Pierre Raynaud
		date : 24/08/2009
	
	****************************************/
	if (function_exists('UDA_DroitsRestreintPlugin'))
	$droitsRestreints = UDA_DroitsRestreintPlugin($_SESSION['user'],'groups');
			
	if ($droitsRestreints == true)
	forward ($CONFIG->wwwroot."pg/groups/world");
			

	// Render the file upload page
	$title = elgg_echo("groups:new");
	$area2 = elgg_view_title($title);
	$area2 .= elgg_view("forms/groups/edit");
	
	$body = elgg_view_layout('two_column_left_sidebar', $area1, $area2);
	
	page_draw($title, $body);
?>